The Design Notes API > The Design Notes JavaScript API > MMNotes.localURLToFilePath()

 

MMNotes.localURLToFilePath()

Description

Converts the specified file:// URL to a local drive path.

Arguments

fileURL

The argument is the path to a local file, expressed as a file:// URL.

Returns

A string containing the local drive path for the specified file.

Example

A call to MMNotes.localURLToFilePath('file:///MacintoshHD/images/moon.gif') returns "MacintoshHD:images:moon.gif".